import request from '@/utils/request';

/**
 * 包车标志牌信息表
 *
 * @author chenshuang
 * @email 1299492720@qq.com
 * @date 2025-09-01 11:01:41
 */
export function useBusApi() {
	return {
		list: (params) => {
		return request({
			url: '/bus/busCharterInfo/list',
			method: 'get',
			params
		});
},
	add: (params) => {
		return request({
							url: '/bus/busCharterInfo/save',
				method: 'post',
						data: params
		});
	},
	update: (params) => {
		return request({
							url: '/bus/busCharterInfo/update',
				method: 'post',
						data: params
		});
	},
	delete: (params) => {
		return request({
							url: '/bus/busCharterInfo/delete',
				method: 'post',
						data: params
		});
	},
	generateQrCode: (params) => {
		return request({
			url: '/bus/busCharterInfo/generateQrCode',  // 正确的包车模块接口
			method: 'post',
			data: params
		});
	}
};
}
